<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once( JPATH_COMPONENT.DS.'admin.controller.php' );
require_once( JPATH_COMPONENT.DS.'helpers'.DS.'helper.php' );
require_once( JPATH_COMPONENT.DS.'helpers'.DS.'select.php' );
if($controller = JRequest::getWord('controller')) {
	$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
	
	if (file_exists($path)) {
		require_once $path;
	} else {
		$controller = '';
	}
}
$TableName = JRequest::getCmd('Tabla');
JSubMenuHelper::addEntry('<img src="components/com_properties/imagenes/icon-stats.gif" style="margin-right: 5px;" align="absmiddle" />' .JText::_ ( 'Categories' ).'</a>', 'index.php?option=com_properties&table=category&limitstart=0&filter_order=ordering');
JSubMenuHelper::addEntry('<img src="components/com_properties/imagenes/icon-edit-fields.gif" style="margin-right: 5px;" align="absmiddle" />' .JText::_('Types').'</a>', 'index.php?option=com_properties&table=type&limitstart=0&filter_order=ordering');
JSubMenuHelper::addEntry('<img src="components/com_properties/imagenes/home.gif" style="margin-right: 5px;" align="absmiddle" />' .JText::_('Products').'</a>', 'index.php?option=com_properties&table=products&limitstart=0&filter_order=ordering');
JSubMenuHelper::addEntry('<img src="components/com_properties/imagenes/control.gif" style="margin-right: 5px;" align="absmiddle" />' .JText::_('Countries').'</a>', 'index.php?option=com_properties&table=country&limitstart=0&filter_order=ordering');
JSubMenuHelper::addEntry('<img src="components/com_properties/imagenes/control.gif" style="margin-right: 5px;" align="absmiddle" />' .JText::_('States').'</a>', 'index.php?option=com_properties&table=state&limitstart=0&filter_order=ordering');
JSubMenuHelper::addEntry('<img src="components/com_properties/imagenes/control.gif" style="margin-right: 5px;" align="absmiddle" />' .JText::_('Locality').'</a>', 'index.php?option=com_properties&table=locality&limitstart=0&filter_order=ordering');
JSubMenuHelper::addEntry('<img src="components/com_properties/imagenes/group.png" style="margin-right: 5px;" align="absmiddle" />' .JText::_('Profiles').'</a>', 'index.php?option=com_properties&table=profiles&limitstart=0&filter_order=ordering');
JSubMenuHelper::addEntry('<img src="components/com_properties/imagenes/icon-stats.gif" style="margin-right: 5px;" align="absmiddle" />' .JText::_ ( 'Control Panel' ).'</a>', 'index.php?option=com_properties');
?>
<?php
$classname	= 'PropertiesController'.$controller;
$controller	= new $classname( );
$controller->execute( JRequest::getVar( 'task' ) );
$controller->redirect();
?>

